/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designPatterns.composity;

/**
 *
 * @author minga
 */
public class Leaf implements Component{
    String name;
    public Leaf(String name)
    {
        this.name=name;
    }
    @Override
    public void SayHello() {
        System.out.println(name+"leaf say hello");
    }

    @Override
    public void SayGooBay() {
        System.out.println(name+"leaf say Godbye");
    }
    
}
